package com.anlogic.sdk.ui.tests.uc2.projectcreate.driverapp;
import static org.junit.Assert.*;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.forms.finder.SWTFormsBot;
import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.anlogic.sdk.ui.tests.utils.DriverAppUtitls;
import com.anlogic.sdk.ui.tests.utils.WorkspaceUtils;
public class PH1P35_PH1P35_DRIVER_USARTTest {
	private static SWTWorkbenchBot bot;
	private static SWTFormsBot fbot;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		bot = new SWTWorkbenchBot();
		fbot=new SWTFormsBot();
		bot.sleep(2000);
		SWTBotPreferences.TIMEOUT = 10000;
SWTBotPreferences.PLAYBACK_DELAY = 500;

	}

	@Before
	public void setUp() throws Exception {
		WorkspaceUtils.resetworkbench(bot);
	}
	@After
	public void tearDown() throws Exception {
		WorkspaceUtils.cleanWorkspace();
	}
	@Test
	public void PH1P35_USART_DMA_core0_32_Ttest() throws InterruptedException {
		DriverAppUtitls.ph1p35_driverAppTest(bot, fbot, "rpu", "USART_DMA",7);
	}


	@Test
	public void PH1P35_USART_INTR_core0_32_Ttest() throws InterruptedException {
		DriverAppUtitls.ph1p35_driverAppTest(bot, fbot, "rpu", "USART_INTR",7);
	}



	@Test
	public void PH1P35_USART_POLLING_core0_32_Ttest() throws InterruptedException {
		DriverAppUtitls.ph1p35_driverAppTest(bot, fbot, "rpu", "USART_POLLING",7);
	}


}
